﻿using ChessModel;
using System;
using System.Collections.Generic;

namespace ChessBench
{
    class Rook01
    {
        // Exercise castling.
        static void Main ()
        {
            ChessGame game = new ChessGame (4, 0, 4, 7);
            game.Setup (new Rook (Player.White), 0, 0);
            game.Setup (new Rook (Player.Black), 7, 7);

            game.Setup (new Rook (Player.White), 0, 0);
            game.Setup (new Rook (Player.Black), 7, 7);

            Console.WriteLine (game.Board);
            Console.WriteLine ("Turn: {0}", game.PlayerTurn);

            GameStatus stat = game.Status;

            Console.WriteLine ("Status: {0}\n", game.Status);

            game.MakeMove (4, 0, 2, 0);
            Console.WriteLine (game.Plies.ToString ());
            Console.WriteLine (game.Board);
            Console.WriteLine ("Status: {0}\n", game.Status);

            game.MakeMove (4, 7, 6, 7);
            Console.WriteLine (game.Plies.ToString ());
            Console.WriteLine (game.Board);
            Console.WriteLine ("Status: {0}\n", game.Status);
        }
    }
}
